<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>{$pagetitle}</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="/static/admin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="/static/admin/style/global.css" media="all">
    <style>
        .layui-form-label{ width:20%;}
        .layui-form-label span{ font-size: 12px; color:gray;}
        .layui-form-item .layui-input-inline{width: 70%;}
        .layui-table td, .layui-table th{ text-align: center;}
        .span10{ width: 100px; height: 22px; line-height: 22px; padding: 2px;}
        .thischeck_all{ text-decoration: underline; cursor: pointer;}
    </style>
</head>
<body>

<form action="{:url()}" method="post" class="layui-form" lay-filter="component-form-group" onsubmit="return save_form2(this)">
    <input name="id" type="hidden" value="{$r.id}">
    <div class="layui-form" lay-filter="layuiadmin-app-form-list" id="layuiadmin-app-form-list" style="padding: 20px 30px 0 0;">

        <div class="layui-form-item">
            <label class="layui-form-label">门店名称</label>
            <div class="layui-input-inline">
                <input type="text" name="store_name" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">联系人</label>
            <div class="layui-input-inline">
                <input type="text" name="contact_name" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">电话</label>
            <div class="layui-input-inline">
                <input type="text" name="mobile" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">所在省</label>
            <div class="layui-input-inline">
                <input type="text" name="province" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">所在市</label>
            <div class="layui-input-inline">
                <input type="text" name="city" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">所在区</label>
            <div class="layui-input-inline">
                <input type="text" name="area" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">详情地址</label>
            <div class="layui-input-inline">
                <input type="text" name="address" autocomplete="off" class="layui-input">
            </div>
        </div>





        <div class="layui-form-item">
            <label class="layui-form-label">门店形象照片<span></span></label>
            <div class="layui-input-inline file-upload">
                <input type="text" name="photo_store" id="info_photo_store" autocomplete="off" class="layui-input"/>
                <div class="layui-btn-group">
                    <button type="button" class="layui-btn" onclick="previewImg('info_photo_store')"><i class="layui-icon">&#xe64a;</i>预览</button>
                    <button type="button" class="layui-btn fastupimg" data-input_id="info_photo_store" data-listtype="img" id="info_photo_store_Picker"><i class="layui-icon">&#xe608;</i>上传</button>
                    <button type="button" class="layui-btn" onClick="selectfile('info_photo_store','','img')"><i class="layui-icon">&#xe67c;</i>浏览</button>
                </div>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">营业执照<span></span></label>
            <div class="layui-input-inline file-upload">
                <input type="text" name="photo_certificate" id="info_photo_certificate" autocomplete="off" class="layui-input"/>
                <div class="layui-btn-group">
                    <button type="button" class="layui-btn" onclick="previewImg('info_photo_certificate')"><i class="layui-icon">&#xe64a;</i>预览</button>
                    <button type="button" class="layui-btn fastupimg" data-input_id="info_photo_certificate" data-listtype="img" id="info_photo_certificate_Picker"><i class="layui-icon">&#xe608;</i>上传</button>
                    <button type="button" class="layui-btn" onClick="selectfile('info_photo_certificate','','img')"><i class="layui-icon">&#xe67c;</i>浏览</button>
                </div>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">施工车间1<span></span></label>
            <div class="layui-input-inline file-upload">
                <input type="text" name="photo_workshop1" id="info_photo_workshop1" autocomplete="off" class="layui-input"/>
                <div class="layui-btn-group">
                    <button type="button" class="layui-btn" onclick="previewImg('info_photo_workshop1')"><i class="layui-icon">&#xe64a;</i>预览</button>
                    <button type="button" class="layui-btn fastupimg" data-input_id="info_photo_workshop1" data-listtype="img" id="info_photo_workshop1_Picker"><i class="layui-icon">&#xe608;</i>上传</button>
                    <button type="button" class="layui-btn" onClick="selectfile('info_photo_workshop1','','img')"><i class="layui-icon">&#xe67c;</i>浏览</button>
                </div>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">施工车间2<span></span></label>
            <div class="layui-input-inline file-upload">
                <input type="text" name="photo_workshop2" id="info_photo_workshop2" autocomplete="off" class="layui-input"/>
                <div class="layui-btn-group">
                    <button type="button" class="layui-btn" onclick="previewImg('info_photo_workshop2')"><i class="layui-icon">&#xe64a;</i>预览</button>
                    <button type="button" class="layui-btn fastupimg" data-input_id="info_photo_workshop2" data-listtype="img" id="info_photo_workshop2_Picker"><i class="layui-icon">&#xe608;</i>上传</button>
                    <button type="button" class="layui-btn" onClick="selectfile('info_photo_workshop2','','img')"><i class="layui-icon">&#xe67c;</i>浏览</button>
                </div>
            </div>
        </div>


    </div>

    <div class="layui-form-item layui-layout-admin" style="margin-top: 30px;">
        <div class="layui-input-block">
            <div class="layui-footer" style="left: 0;">
                <button class="layui-btn" type="submit"  lay-filter="component-form-element">立即提交</button>
                <button type="reset" class="layui-btn layui-btn-primary close">关闭</button>
            </div>
        </div>
    </div>
</form>
<!--文件上传ajax调用的接口地址-->
<script>
    var upload_index="{:url('file/index')}";
    var upload_add="{:url('file/add')}";
    var upload_config="{:url('file/uploadConfig')}";
</script>
<script src="/static/admin/layui/layui.js"></script>
<script src="/static/js/jquery.min.js"></script>
<script src="/static/js/globals.js"></script>
<!--文件上传 start-->
<script type="text/javascript" src="/static/webuploader/kinderfile.js"></script>
<script type="text/javascript" src="/static/webuploader/Sortable.js"></script>
<script type="text/javascript" src="/static/webuploader/morepic.js"></script>
<!--以下是针对 快速上传单个文件插件-->
<link rel="stylesheet" type="text/css" href="/static/webuploader/style/webuploader.css" />
<link rel="stylesheet" type="text/css" href="/static/webuploader/style/style.css" />
<script type="text/javascript" src="/static/webuploader/webuploader.js"></script>
<script type="text/javascript" src="/static/webuploader/fastupimg.js"></script>
<!--文件上传 end-->
<!--文件上传的预览功能中中也需要用到我 fancybox plus start-->
<link rel="stylesheet" type="text/css" href="/static/fancybox3/jquery.fancybox.min.css" media="screen" />

<script type="text/javascript" src="/static/fancybox3/jquery.fancybox.min.js"></script>
<!--文件上传的预览功能中中也需要用到我 fancybox plus end-->
<script>
    layui.config({
        base: '/static/admin/' //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index', 'form'], function(){
        var $ = layui.$
            ,form = layui.form;
        form.render(null, 'component-form-group');
    })


</script>
</body>
</html>